package net.brucecooper.mindmapgadget.client;

import net.brucecooper.mindmap.client.UserInfoFetcher;

public class WaveUserInfoFetcher implements UserInfoFetcher {


    public WaveUserInfoFetcher() {
    }
    
    /**
     * TODO for some obscure reason, If I try to use the WaveFeature in this class,  I get a javascript error.  This works just as well, but should be fixed to use the fetaure properly
     * @return
     */
    private native String getViewer() /*-{
        return wave.getViewer().getId();
    }-*/;

    public String getCurrentUser() {
        return getViewer();
    }

}
